package com.example.tpl.system.entity;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 描述：用户与岗位关联
 * 作者：刘飞华
 * 日期：2025-01-10 14:58:37
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_user_post")
public class UserPostBean implements Serializable {

    //主键
    @TableId(type = IdType.AUTO)
    private Long id;
    //用户id
    private Long userId;
    //岗位id
    private Long postId;

    public UserPostBean(Long userId, Long postId) {
        this.userId = userId;
        this.postId = postId;
    }
}
